Skip to content

Conversation

LuminaX-alt
Copy link
Owner

Relax schema validation for structured outputs (response_format=json_schema)

  • Updated structured output schema validation to allow any valid JSON Schema (arrays, primitives, nested types), not just function-call style objects.
  • Maintains backward compatibility with existing function-calling schemas.

Fixes: openai#1733

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

Relax schema validation for structured outputs (response_format=json_schema)

- Updated structured output schema validation to allow any valid JSON Schema 
  (arrays, primitives, nested types), not just function-call style objects.
- Maintains backward compatibility with existing function-calling schemas.

Fixes: openai#1733
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Structured outputs response_format requires strict function calling JSON Schema?
1 participant